<template>
  <div class="login">
    <niu-button @click="login">{{$t('login')}}</niu-button>
    <niu-button @click="changeLang">切换</niu-button>
  </div>
</template>

<script>
	export default {
		name: "login",
		data() {
			return {};
		},
		computed: {},
		methods: {
			login() {
				this.$axios.post(this.$api.login, {}).then(res => {
					let {data, msg, code} = res;
				}).catch(ret => {
				});
			},
			changeLang() {
				this.$i18n.locale = this.$i18n.locale == 'zn' ? 'en' : 'zn'
			}
		},
		watch: {},
		mounted() {
		},
		created() {
		}
	}
</script>

<style scoped lang="less" src="@/style/login/index.less">

</style>
